package com.example.demo.request.Supplier;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;

@Data
public class AddRequest {
    @NotEmpty(message="供应商名代码不能为空")
    public String supplier_code;
    @NotEmpty(message="供应商名不能为空")
    public String supplier_name;
    @Size(max = 30,message="营业执照编号长度不能大于30")
    public String license_no;
    @NotEmpty(message="公司名不能为空")
    @Size(max = 50,message="公司名长度不能大于50")
    public String company_name;

}
